package com.ruoyi.service.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 访客信息对象 service_visitor
 * 
 * @author yepanpan
 * @date 2025-04-21
 */
@Data
public class ServiceVisitor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 单位区域 */
    @Excel(name = "单位区域")
    private String deptName;
    @NotNull
    private Long deptId;

    /** 户主 */
    @Excel(name = "业主姓名")
    private String personName;
    @Excel(name = "业主身份证")
    private String personCard;

    /** 业主 */
    @NotNull
    private Long personId;

    /** 姓名 */
    @Excel(name = "姓名")
    @NotNull
    private Long name;

    /** 性别 */
    @Excel(name = "性别", dictType="sys_user_sex", comboReadDict=true)
    @NotNull
    private String sex;

    /** 联系电话 */
    @Excel(name = "联系电话")
    @NotNull
    private String phone;

    /** 车牌 */
    @Excel(name = "车牌")
    private String carPlate;

    /** 来访原由 */
    @Excel(name = "来访原由")
    @NotNull
    private String reason;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDay;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDay;


}
